package com.flea.hclv.model.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;

import com.flea.hclv.model.entity.PersonInfo;

public interface PersonInfoMapper {
    int deleteByPrimaryKey(String id);

    int insert(PersonInfo record);

    int insertSelective(PersonInfo record);

    PersonInfo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(PersonInfo record);

    int updateByPrimaryKeyWithBLOBs(PersonInfo record);

    int updateByPrimaryKey(PersonInfo record);
    @Select("select * from cais_zero_person_info where valid = 'Y' and card_sn =#{cardSn}")
	PersonInfo findByCardSn(String cardSn);

	List<PersonInfo> selectAll(RowBounds rowBounds, @Param("projectCode")String projectCode, @Param("name")String name, @Param("personNo")String personNo,@Param("team")String team);

	int deleteByIds(@Param("idList")List<String> idList,@Param("userId") String userId);

	List<PersonInfo> selectAllInit();

	List<PersonInfo> selectAllByAuth(RowBounds rowBounds, @Param("bdType")String bdType,@Param("projectCode")String projectCode, @Param("name")String name, @Param("personNo")String personNo,  @Param("team")String team);
}